<template>
  <div>
<van-nav-bar
  title="收藏列表"
  left-arrow
  @click-left="onClickLeft"
/>
<listqq :list='list'></listqq>
  </div>
</template>

<script>
import requset from '@/utils/requset'
import listqq from '../components/listqq.vue'
export default {
  name: 'VueHaowuFavorate',
  components: {
    listqq
  },
  data () {
    return {
      list: []
    }
  },
  created () {
    this.getCollect()
  },
  methods: {
    onClickLeft () {
      this.$router.back()
    },
    async getCollect () {
      const res = await requset({
        url: '/user/favorites'
      })
      this.list = res.body
    }
  }
}
</script>

<style lang="less" scoped>
/deep/ .van-nav-bar__content {

  background-color: #21b97a;
  .van-nav-bar__left {
    .van-icon  {
      color: #fff;
    }
  }
  .van-nav-bar__title{
  color: #fff;
  }
}
</style>
